package com.csap.framework.oauth2.server.entity;

import com.csap.framework.annotation.apidoc.Description;
import com.csap.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;

import lombok.Builder;

import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.Data;
import lombok.AllArgsConstructor;
import com.csap.mybatisplus.annotation.TableId;
import com.csap.framework.oauth2.server.model.ClientScopeModel;
import lombok.NoArgsConstructor;
import com.csap.mybatisplus.extension.activerecord.Model;
import com.csap.mybatisplus.annotation.TableName;

/**
 * <p>
 * 客户端作用域
 * </p>
 *
 * @author yangchengfu
 * @dateTime 2021-07-25 23:51:30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "client_scope")
@Description(value = "客户端作用域实体类")
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ClientScopeEntity extends Model<ClientScopeEntity, ClientScopeModel> {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO, value = "id")
    private Long id;
    /**
     * 作用域ID
     */
    private Long scopeId;
    /**
     * 客户端ID
     */
    private String clientId;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 授权是否显示文字
     */
    private Integer show;
    /**
     * 授权显示文字的内容
     */
    private String showText;
    /**
     * 作用域
     */
    private String scope;

}
